﻿using System;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RedSand.Site.Models
{
    public class ProjectJoinInfo
    {
        [Key]
        [HiddenInput(DisplayValue=false)]
        public int JoinID{ get; set; }

        [Display(Name = "ProjectID")]
        public int? ProjectID{ get; set; }

        [Display(Name = "Employee")]
        public string Employee{ get; set; }

        [Display(Name = "JoinDate")]
        [DataType(DataType.Date)]
        public DateTime? JoinDate{ get; set; }

        [Display(Name = "LeaveDate")]
        [DataType(DataType.Date)]
        public DateTime? LeaveDate{ get; set; }

        [Display(Name = "JoinReason")]
        public string JoinReason{ get; set; }

        [Display(Name = "LeaveReason")]
        public string LeaveReason{ get; set; }
    }
    public class ProjectJoinLeaveInfo
    {
        [Display(Name = "Employee")]
        public string Employee { get; set; }

        [Display(Name = "CreateDate")]
        [DataType(DataType.Date)]
        public DateTime? CreateDate { get; set; }

        [Display(Name = "Reason")]
        public string Reason { get; set; }

        [Display(Name = "Type")]
        public string Type { get; set; }
    }
    public class ProjectJoinName
    {
        public string Employee { get; set; }
    }
}
